package cn.xval.ft.app.gen.database.entity;

import cn.xval.fc.core.database.SnowflakeIdGenerator;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.GenericGenerator;

@Data
@Entity
@Table(name = "FutureAccount")
@ToString
public class FutureAccount {
    @Id
    @GenericGenerator(name = "Snowflake", type = SnowflakeIdGenerator.class)
    @GeneratedValue(generator = "Snowflake")
    @Comment("编码")
    @Column(name = "id")
    private Long id;
    @Comment("登录密码")
    @Column(name = "password", length = 40)
    private String password;
    @Comment("名称")
    @Column(name = "name", nullable = false, length = 20)
    private String name;
    @Comment("登录账号")
    @Column(name = "userId", nullable = false, length = 17)
    private String userId;
    @Comment("经纪公司代码")
    @Column(name = "brokerId", nullable = false, length = 10)
    private String brokerId;
    @Comment("经纪公司")
    @Column(name = "broker", length = 50)
    private String broker;
}